package com.alipay.config;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *版本：1.0
 *日期：2016-06-06
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

//开发中常见报错：系统繁忙，请稍后再试；al140247

import com.web.webstart.base.util.FileUtil;

//支付宝支付要配置-->PID和公钥管理-->开放平台密钥     https://open.alipay.com/platform/keyManage.htm  (应用公钥，支付宝公钥，授权回调地址(随便填))
//支付宝退款要配置-->PID和公钥管理-->mapi网关产品密钥 https://open.alipay.com/platform/keyManage.htm

public class AlipayConfig {	//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
	// 合作身份者ID(PID)，以2088开头由16位纯数字组成的字符串  2088521108139413
	//合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串，查看地址：https://openhome.alipay.com/platform/keyManage.htm?keyType=partner
	public static String partner = "2088021320955403";
	// 商户的私钥
	/** 商户私钥，pkcs8格式 */
	//商户的私钥,需要PKCS8格式，RSA公私钥生成：https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.nBDxfy&treeId=58&articleId=103242&docType=1
                                     //"MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBANtmdgaAilCmuR8oce/0fGmnE6naQwPpMqRuzLf1XIMG76F5f+zSZLxN4EbzgU6lqivfXEcWDWvoIRUBFyydsthOL2m2fMpYazgO0uR1EJInfN+dSlqvlx+53op+9tk6OHDeS02Oj8u10plw/geK4LL9YwPUbOCXWyYW2I04t/kvAgMBAAECgYEAziuFg2ytDUbutSHbl6KGev3E2DAEt/DsBNSmxednJ8a9gFnvhKjiPQhamsOuuogdGPLoh1N9XXICKXishFq6e0gEC6KhleTQHEyIPvV/t2juQkY9l4zHZ3XH/BrviWVfHTPOvtsrDj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AyTA06hv62EblXVt2XoQVaZaV6v9dSTB3ehBxEH1G1gv2to2/ZxloODbyOLfC48KHSCocChV+HxpAfQbNmmr1EwJBAI9N4tlmX+NEDw8M84ncCTdXW39GFPlOhTqbzq8BkTq77QEjQ6mSA/dnaUtfswpgIsQE9LK5FkCvPBnjq576CYECQQCXBQl/LH+9bSR9kTZkl4G/BW92ixcXHp4MXyjXPa9bOmvxomRtznB6nz+tu2Qz9X/XRJkAxws8PlJ1Mq34AN1a";

	//应用公钥(RSA1widthRsa)和支付宝公钥查看地址 https://openhome.alipay.com/platform/detailApp.htm?appId=2016112103041339&tab=appSetting
	public static String application_public_key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDAhtSO/q8OgAdLlsCPlUWgnV7ET7SbFIrUDQxktrnt/zNrRg4pA6+cEYVVVBI6RMSmKOMJCEdMpZCqOfKc95JOgMZVq5n46qRGck0dLtkDY5wjRZOvhrr3fQhwNWShciGkAPYDmi6HcaHEJv+KOCex404R0Ig0s0NQ+c4tUyVFJQIDAQAB";

	// 支付宝的公钥，无需修改该值
	public static String ali_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";

	/** 支付宝支付业务：入参app_id */
	public static String APPID= "2016112103041339";
	public static String EMAIL= "exiaodao@exiaodao.com";
	public static String account_name= "上海孝道信息技术有限公司";

	//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑


	// 调试用，创建TXT日志文件夹路径
	public static String log_path = FileUtil.getAlipaypayLogPath();

	// 字符编码格式 目前支持 gbk 或 utf-8 UTF-8
	public static String input_charset = "UTF-8";
	
	// 签名方式 不需修改
	public static String sign_type = "RSA";

	//退款： 调用的接口名(即时到账有密退款接口)，无需修改 https://support.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.3L8x7e&treeId=62&articleId=104744&docType=1
	public static String service_refund = "refund_fastpay_by_platform_pwd";
	//提现（转账）： 批量付款到支付宝账户  https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7386797.0.0.a5Nzss&treeId=64&articleId=103569&docType=1
	public static String service_batchTrans = "batch_trans_notify";

	public static final String SIGN_ALGORITHMS = "SHA1WithRSA";
}
